//
//  FanDianListTopCell.m
//  FactorySale
//
//  Created by 李 on 2020/1/13.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "FanDianListTopCell.h"

@implementation FanDianListTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        
        UIButton *button  = [UIButton buttonWithType:UIButtonTypeCustom];
        button.frame = CGRectMake(0, 0, ScreenW, 5);
        [button setBackgroundImage:[UIImage imageNamed:@"圆角矩形 782 拷贝"] forState:UIControlStateNormal];
        [self.contentView addSubview:button];
        
        CGFloat widthMargin = 0;
        CGFloat width = (ScreenW-10)/5;
        
        UILabel *dateLab = [[UILabel alloc] initWithFrame:CGRectMake(widthMargin, 5, width, 57.5)];
        dateLab.text = @"年/月";
        dateLab.font =  KFontPingFangSCMedium(13);
        dateLab.textAlignment = NSTextAlignmentCenter;
        dateLab.textColor = [UIColor colorWithHexString:@"#333333"];
        dateLab.numberOfLines = 0;
        [self.contentView addSubview:dateLab];
        
        UILabel *secondLab = [[UILabel alloc] initWithFrame:CGRectMake(width+widthMargin*2, 5, width, 57.5)];
        secondLab.text = @"期初返点";
        secondLab.font = KFontPingFangSCMedium(13);
        secondLab.textAlignment = NSTextAlignmentCenter;
        secondLab.textColor = [UIColor colorWithHexString:@"#333333"];
        secondLab.numberOfLines = 0;
        [self.contentView addSubview:secondLab];
        
         UILabel *thirdLab = [[UILabel alloc] initWithFrame:CGRectMake(width *2+widthMargin*3, 5, width, 57.5)];
               thirdLab.text = @"已结算返点";
               thirdLab.font = KFontPingFangSCMedium(13);
               thirdLab.textAlignment = NSTextAlignmentCenter;
               thirdLab.textColor = [UIColor colorWithHexString:@"#333333"];
               thirdLab.numberOfLines = 0;
               [self.contentView addSubview:thirdLab];

               
        UILabel *fourthLab = [[UILabel alloc] initWithFrame:CGRectMake(width*3+widthMargin*4, 5, width, 57.5)];
               fourthLab.text = @"新增未结算返点";
               fourthLab.font = KFontPingFangSCMedium(13);
               fourthLab.textAlignment = NSTextAlignmentCenter;
               fourthLab.textColor = [UIColor colorWithHexString:@"#333333"];
               fourthLab.numberOfLines = 0;
               [self.contentView addSubview:fourthLab];
        
        
        UILabel *fifthLab = [[UILabel alloc] initWithFrame:CGRectMake(width*4+widthMargin*5, 5, width, 57.5)];
               fifthLab.text = @"期末剩余返点";
               fifthLab.font = KFontPingFangSCMedium(13);
               fifthLab.textAlignment = NSTextAlignmentCenter;
               fifthLab.textColor = [UIColor colorWithHexString:@"#333333"];
               fifthLab.numberOfLines = 0;
               [self.contentView addSubview:fifthLab];
        
        UIView *line = [[UIView alloc] init];
          line.backgroundColor = [UIColor colorWithHexString:@"#E5E5E5"];
          line.frame = CGRectMake(0, 57.5, KWIDTH-15, 0.5);
          [self.contentView addSubview:line];
        
    }
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
